

      http://elm-chan.org/works/sd8p/report.html


         AVR ATtiny85.         MC34119
   

         :

   -  "WAV"
   -    8  48 .
   - 
   -  8 .   

   
   16-    ,    8 .    .    01,02,03  ..     .       .  ,         ,      FAT  FAT32.     2 . ,   ,    .

    ,         Buzzer   .      interface.c
   
   :
--------------------------------------------------------------------------------------------------------------------------------------------------------
void alarm(void)
{
unsigned char i;    
    
    //       /
    if(second == 0){
        for(i=0;i<5;i++){
            if( (alarmArray[i].day & 1<<day) && (alarmArray[i].hour == hour) && (alarmArray[i].minute == minute) && alarmArray[i].active ){
                count_ring = 600; // --------------------------- count_ring = 240;  //      2   (120  * 2= 240)
                pEEPROMstr = &alarmArray[i].name[0];
                SET_STATE(alarm_to_screen);
                };
        };
    };
    
    if(count_ring){      // 
        count_ring--;
        buzzer_PORT.buzzer = ~(buzzer_PORT.buzzer);   // ----------------------------    buzzer_PORT.buzzer = 0;
        out_PORT.out = 1;
    } else 
        {
        buzzer_PORT.buzzer = 0;
        out_PORT.out = 0;
        };
---------------------------------------------------------------------------------------------------------------------------------------------------------

    buzzer_PORT.buzzer = ~(buzzer_PORT.buzzer);  buzzer_PORT.buzzer = 0; 

       count_ring = 600;   240 (2 ).        .

   .


              .     STBY.      .      PB1 ATMega32    .         .     ,   ,     .     PB1   0.    STBY      (  )      .          .     ,    .     ,     .


 









